#include <stdio.h>
#include <stdlib.h>

int
main(void)
{
	int x = 0;
	int i = 31;

	scanf("%d", &x);

	while (i >= 0)
		printf("%d", abs((x>>i--) % 2));
	putchar('\n');

	return 0;
}
